<template>
	<view>
		<view class="developer-item">
			<view class="user-icon">
				<image :src="user_icon" mode=""></image>
				<text>{{ username }}</text>
			</view>
			<view class="userInfo">
				<view>{{ identity }}</view>
				<view>{{ college }}</view>
				<view>{{ work }}</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		props: {
			user_icon: {
				type: String,
				default:'https://img2.baidu.com/it/u=3469718527,3353982908&fm=253&fmt=auto&app=138&f=JPEG?w=550&h=409'
			},
			username: {
				type:String,
				default: '张三'
			},
			identity: {
				type:String,
				default:'开发人员'
			},
			college:{
				type: String,
				default:'计算机学院'
			},
			work:{
				type: String,
				default:'APP开发'
			}
		}
	}
</script>

<style lang="less">
	.developer-item {
		display: flex;
		justify-content: space-between;
		width: 95%;
		height: 170rpx;
		margin: 0 auto 30rpx;
		padding: 0 20rpx;
		box-sizing: border-box;
		background-color: #FFFFFF;
		border-radius: 15rpx;
		box-shadow: 0 0 10px rgba(150, 150, 150, .3);

		.user-icon {
			margin-top: 50rpx;

			image {
				width: 70rpx;
				height: 70rpx;
				vertical-align: middle;
				margin-right: 10rpx;
			}
		}

		.userInfo {
			display: flex;
			flex-direction: column;
			justify-content: space-around;
			text-align: right;
			font-size: 28rpx;

			view {
				&:first-child {
					color: #ff4b12;
				}

				&:last-child {
					color: #45d5a7;
				}
			}
		}
	}
</style>
